#include <CarPhysics.h>
Inheritance diagram for CarPhysics:

Public Member Functions | |
| CarPhysics (Vehicle &vehicle) | |
| virtual | ~CarPhysics () |
| virtual double | update (double step) |
| virtual void | odeDraw () |
| bool | create (const CarData *carDataPtr, osg::ref_ptr< osg::PositionAttitudeTransform > objectPAT) |
| void | setSteering (double steer) |
| void | setAccelleration (double acl) |
| void | setGear (int gear) |
| double | getSpeed () |
| double | getTraction () |
| const Vector3 & | getPosition () |
| const double * | getRotation () |
| void | setPosition (double x, double y, double z) |
| void | setRotation (double x, double y, double z) |
| void | mySetPosition () |
| Vehicle * | getOSGVehicle () |
Protected Member Functions | |
| void | positionCar (double x, double y, double z) |
| const double * | getGeomPosition (dGeomID geom) |
| const double * | getGeomRotation (dGeomID geom) |
| void | addGeom (dGeomID geom, dReal xoff, dReal yoff, dReal zoff, dMatrix3 R) |
Protected Attributes | |
| const CarData * | _pCarData |
| double | _steering |
| double | _accel |
| double | _speed |
| double | _traction |
| double | _chassisHgt |
| double | _gearMod |
| dBodyID | _carBody |
| dBodyID | _wheelBody [4] |
| dJointID | _joint [4] |
| dSpaceID | _carSpace |
| vector< dGeomID > | _carGeoms |
| dGeomID | _wheelGeom [4] |
| PhysGeomData | _wheelData |
| Vehicle | OSGvehicle |
|
|
A constructor with one argument.
|
|
|
A destructor. |
|
||||||||||||||||||||||||
|
|
|
||||||||||||
|
a normal member taking two arguments and returning a bool.
|
|
|
a protected member taking one arguments and returning const double *.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A virtual member. updates simulation state. Implements PhysicsClient. |
|
||||||||||||||||
|
a protected member taking three arguments and returning void.
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
A virtual member.
Implements PhysicsClient. |
|
|
a protected variable. current acceleration. |
|
|
a protected variable. body id of vehicle. |
|
|
a protected variable. vector for car geometries (actually dGeomTransforms). |
|
|
a protected variable. space for car geometries. |
|
|
a protected variable. height of chassis. |
|
|
a protected variable. gear modifier, used for gear switching (transmission). |
|
|
a protected variable. joint ids of vehicle wheels. |
|
|
a protected variable. struct for car attributes. |
|
|
a protected variable. current car speed. |
|
|
a protected variable. current steering (-1=left 1=right). |
|
|
|
|
|
a protected variable. body ids of vehicle wheels. |
|
|
|
|
|
a protected variable. geom for each wheel. |
|
|
|
1.4.6-NO